package com.nexus.all.dto;

import com.nexus.bean.annotation.valid.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @ClassName: NoteLikeDTO
 * @Author: ZZYR
 * @Date: 2024/2/26  9:21
 * @Version 1.0.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@ApiModel("笔记/评论点赞对象入参")
public class NoteLikeDTO {


    @ApiModelProperty(value = "点赞笔记/评论id", required = true)
    @NotNull(message = "点赞笔记/评论id不能为空", groups = AddGroup.class)
    private Long likeDataId;

    @ApiModelProperty(value = "点赞类型 1.笔记点赞 2.评论点赞", required = true)
    @NotNull(message = "点赞类型不能为空", groups = AddGroup.class)
    private Byte noteLikeType;

    @ApiModelProperty(value = "用户id", hidden = true)
    private Long userId;

}
